import  dev  from "./dev";
import pord  from "./pord.";
import {Configuration}  from "koa-log4";
import { DataSourceOptions, DataSource } from "typeorm";

export interface ConfigType {
    port:string;
    staticPath: string;
    orm: DataSource;
    jwtKey: string;
    mysql: DataSourceOptions;
    routePrefix: {
		app: string;
		admin: string;
        apiPrefix: {
            app: {
                [key: string]: any
            };
            admin: {
                [key: string]: any
            }
        }
	},
    cors: {
        Origin: string;
        Headers: string;
        configCors: () => object;
    },
    setPrefix: (path: string) => string;
    logConfig:Configuration;
    
}

export default process.env.NODE_ENV=="dev"?dev:pord